#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int nums[6] = { 1,1,0,1,1,1 };
    int numsize = 6;
    int max = 0, a = 0, i = 0;
    int num = 0;
    for (i; i < numsize; i++)
    {
        for (a = i; a < numsize; a++)
        {
            if (nums[a] != 0)
            {
                num++;
            }
            else break;
        }
        i = a;
        if (max < num)
            max = num;
        num = 0;
    }
    printf("%d", max);
}